package design.SimpleFactory;

import java.util.Calendar;

//测试类
public class simpleFactoryTest  {

    public static void main(String[] args) {
        CourseFactory factory = new CourseFactory();
        //第一步，先输入指定字符，然后创建指定的类。
        //Icourse course = factory.create("java");
        //第二步，输入类，直接用反射来创建对象
        Icourse course = factory.create(JavaCourse.class);
        course.record();
        /*Calendar.getInstance()*/
    }

}
